<!DOCTYPE html>
<html>

<head>
	<meta charset="UTF-8">
	<title>账号管理</title>
	<link rel="stylesheet" href="../css/common2.css">
	<style>
		.hut_but_tz {
			display: inline-block;
			height: 38px;
			width: 108px;
			line-height: 38px;
			padding: 0 18px;
			background: url(../image/enter.png) no-repeat center center;
			color: #fff;
			white-space: nowrap;
			text-align: center;
			font-size: 14px;
			border: none;
			border-radius: 2px;
			cursor: pointer;
		}
	</style>
</head>

<body class="main-body">
	<div id="vue-root" style="margin-top:50px;">

		<div class="search_box">
			<div class="add">
				<a href="account_item1.html" style="color: white">添加账号</a>
			</div>
			<div class="refresh" onclick="location.reload()" style="display: inline-block;">刷新</div>
		</div>
		<div class="table ">
			<table class="table_top">
				<thead>
					<tr>
						<th class="two">
							<input type="checkbox" class="check-box">
						</th>
						<th class="two">序号</th>
						<th class="two" style="width: 90%">账号</th>
						<th class="three">编辑/删除</th>
					</tr>
				</thead>
				<tbody id="list">
					<tr v-for="(item,index) in list" :key="item.id">
						<td style="width: 100px">
							<input type="checkbox" class="check-box">
						</td>
						<td style="width: 100px"><span v-text="index+1"></span></td>
						<td class="four" v-text="item.username"></td>
						<td class="three" style="width: 100px">
							<div class="option">
								<div class="edit-icon option-icon">
									<a :href="'account_item1.html?id='+item.id"
										style="position: absolute; left: 20%; top: 30%;">
										<img class="img" src="../image/edit.png" height="20" width="20"
											onmouseover="this.src='../image/edit_light.png'"
											onmouseout="this.src='../image/edit.png'" />
									</a>
								</div>
								<div class="delete-icon option-icon" @click="del([item.id])"
									style="right: 20%; top:30%;position: absolute;">
									<img class="img" src="../image/delete.png" height="20" width="20"
										onmouseover="this.src='../image/delete_light.png'"
										onmouseout="this.src='../image/delete.png'" />
								</div>
							</div>
						</td>
					</tr>
				</tbody>
			</table>
		</div>

		<ul class="pagination" v-if="pages>1">
			<li>
				<a v-if="pageNum!=1" @click="pageNum=1">«</a>
				<a class="pages-jump" v-if="pageNum!=1" @click="pageNum&#45;&#45;">‹</a>
				<a v-text="pageNum"></a>
				<a class="pages-jump" v-if="pageNum!=pages" @click="pageNum++">›</a>
				<a v-if="pageNum!=pages" @click="pageNum=pages">»</a>
			</li>

		</ul>
		<div style="float: right;margin-bottom: 20px;">
			总共{{total}}条记录
			<select class="ui-select init" style="height:32px" v-model="pageSize">
				<option :value="10">每页10条</option>
				<option :value="30">每页30条</option>
				<option :value="100">每页100条</option>
			</select>
		</div>

	</div>
	<script src="/scriptZIP/qs.min.js"></script>
	<script src="/scriptZIP/vue.min.js"></script>
	<script src="/scriptZIP/axios.min.js"></script>

	<script src="/js/common.js"></script>
	<script src="/js/list.js"></script>

	<script>

		new Vue(merge({
			data: {
				urls: {
					list: '/pc/user/list/' + top_params().id,
					del: '/pc/user/del'
				}
			}
		}));
	</script>


</body>

</html>